<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="ww" uri="webwork" %>
<ww:bean name="'com.css.apps.base.dict.service.DictMan'" id="dictID" />
<form class="form-horizontal table-form" name="form1" id="form1" method="post" action="dirImsTask.action?table=<ww:property value='table'/>"  onsubmit="return $action.query(this)">
    <input type="hidden" name="page.orderFlag" id="page.orderFlag" class="order-flag" value="<ww:property value='page.orderFlag'/>"> 
	<input type="hidden" name="page.orderString" id="page.orderString" class="order-string" value="<ww:property value='page.orderString'/>">
	<input type="hidden" name="page.pageSize" class="page-size" value="<ww:property value='page.pageSize'/>">
	<input type="hidden" name="page.totalPages" class="page-count" value="<ww:property value='page.totalPages'/>">
	<input type="hidden" name="page.currentPage" class="page-current" value="<ww:property value='page.currentPage'/>">
	<input type="hidden" name="uuid" value="<ww:property value='uuid'/>">
	
	<div class="table-header">
		<div class="table-search">
			<ul>
			    <li>同步类型：<ww:select attributes="class='input-small'" name="'bizType'" id="bizType" value="bizType"  list="#dictID.getDictListQuery('d_ims')" listKey="code" listValue="name"></ww:select> </li>
			    <li>同步结果：<ww:select attributes="class='input-small'" name="'status'" id="status" value="status"  list="#dictID.getDictListQuery('d_ims_status')" listKey="code" listValue="name"></ww:select> </li>
			    <li>最新同步时间：<input class="input-small Wdate" id="beginDate" name="beginDate" readonly="true" type="text" onclick="WdatePicker({maxDate:'#F{$dp.$D(\'endDate\')}'})" value='<ww:property value="new java.text.SimpleDateFormat('yyyy-MM-dd').format(beginDate)"/>'> 
			    至 <input class="input-small Wdate" id="endDate" name="endDate" readonly="true" type="text" onclick="WdatePicker({minDate:'#F{$dp.$D(\'beginDate\')}'})" value='<ww:property value="new java.text.SimpleDateFormat('yyyy-MM-dd').format(endDate)"/>'></li>
			    <li><ww:button css="btn green" caption="查询" funcode="acl_ims/dirImsTask" type="submit"></ww:button></li>
			</ul>
		</div>
	</div>
	<table class="table table-bordered">
		<thead>
			<tr>
				<th width="25px"><input group="ids" class="cleck-all" type="checkbox"/></th>
				<th width="50px">操作</th>
				<th width="100px">操作类型</th>
				<th width="150px">操作对象</th>
				<th width="150px">最初同步时间</th>
				<th width="150px">最新同步时间</th>
				<th width="100px">同步结果</th>
				<th width="100px">失败次数</th>
				<th >描述</th>
			</tr>
		</thead>
		<tbody>
		  <ww:iterator value="page.results" id="data" status="data">
			<tr>
				<td class="text-center"><input type="checkbox"  name="ids" id="ids" value="<ww:property value="uuid" />"/></td>
				<td class="text-center">
					<ww:if test="status.equals(\"2\")">
					<ww:link funcode="acl_ims/syncImsTask" caption="同步" onclick="$action.exec(this,{url:'syncImsTask.action?ids=%{uuid}',title:'将重新同步该项，确认同步?'})" href="javascript:;"></ww:link>&nbsp;
					</ww:if>
				</td>
				<td class="text-center"><ww:property value="#dictID.getDictType('d_ims',bizType).name" /></td>
				<td class="text-center"><ww:property value="bizName"/></td>
				<td class="text-center"><ww:property value="new java.text.SimpleDateFormat('yyyy-MM-dd HH:mm').format(createTime)"/></td>
				<td class="text-center"><ww:property value="new java.text.SimpleDateFormat('yyyy-MM-dd HH:mm').format(lastTime)"/></td>
				<td class="text-center"><ww:property value="#dictID.getDictType('d_ims_status',status).name" /></td>
				<td class="text-center"><ww:property value="failCount"/></td>
				<td class="text-center"><ww:property value="remark"/></td>
			</tr>
			</ww:iterator>
		</tbody>
	</table>
	<div class="pagination"> <ww:property value="page.pageSplit"/></div>
</form>

